import React from 'react';
import {
    PieChartOutlined,
    AreaChartOutlined, BarChartOutlined,
    DotChartOutlined, LineChartOutlined,
    RadarChartOutlined, HeatMapOutlined,
    FallOutlined, RiseOutlined, StockOutlined,
    BoxPlotOutlined, FundOutlined, SlidersOutlined,
    AccountBookOutlined,
    AimOutlined, AlertOutlined,
    ApartmentOutlined, ApiOutlined,
    AppstoreAddOutlined, AppstoreOutlined,
    AudioOutlined, AudioMutedOutlined,
    AuditOutlined, BankOutlined,
    BarcodeOutlined, BarsOutlined,
    BellOutlined, BookOutlined,
    CrownOutlined,
    BorderOutlined, BranchesOutlined,
    BugOutlined, CameraOutlined,
    CarOutlined, CarryOutOutlined,
    CiCircleOutlined, CiOutlined,
    ClearOutlined, CloudDownloadOutlined,
    CloudOutlined, CloudServerOutlined,
    CloudSyncOutlined, CloudUploadOutlined,
    ClusterOutlined, CodeOutlined,
    CoffeeOutlined, CommentOutlined,
    CompassOutlined, CompressOutlined,
    ConsoleSqlOutlined, ContactsOutlined,
    ContainerOutlined, ControlOutlined,
    CopyrightOutlined,
    CreditCardOutlined,
    CustomerServiceOutlined,
    DatabaseOutlined,
    DashboardOutlined,
    DeleteRowOutlined,
    DeleteColumnOutlined,
    DeploymentUnitOutlined,
    DesktopOutlined,
    DeliveredProcedureOutlined,
    DisconnectOutlined,
    DislikeOutlined,
    DollarOutlined,
    DownloadOutlined,
    EllipsisOutlined,
    EnvironmentOutlined,
    EuroCircleOutlined,
    ExceptionOutlined,
    ExpandAltOutlined,
    ExpandOutlined,
    ExperimentOutlined,
    FieldTimeOutlined,
    FolderOpenOutlined,
    FundProjectionScreenOutlined,
    GlobalOutlined,
    HddOutlined,
    HistoryOutlined,
    InboxOutlined,
    LaptopOutlined,
    LockOutlined,
    MailOutlined,
    MergeOutlined,
    MessageOutlined,
    PictureOutlined,
    PlaySquareOutlined,
    ReadOutlined,
    SettingOutlined,
    ShopOutlined,
    ShoppingCartOutlined,
    ShoppingOutlined,
    TeamOutlined,



} from '@ant-design/icons';


const AntdIcon = ({ style = {} }) => {
    const antdIcons = {
        //数据类图标
        PieChartOutlined: <PieChartOutlined style={{ fontSize: '20px', ...style }} />,
        // AreaChartOutlined: <AreaChartOutlined style={{ fontSize: '20px', ...style }} />,
        // AreaChartOutlined: <AreaChartOutlined style={{ fontSize: '20px', ...style }} />,
        // BarChartOutlined: <BarChartOutlined style={{ fontSize: '20px', ...style }} />,
        // DotChartOutlined: <DotChartOutlined style={{ fontSize: '20px', ...style }} />,
        // LineChartOutlined: <LineChartOutlined style={{ fontSize: '20px', ...style }} />,
        // RadarChartOutlined: <RadarChartOutlined style={{ fontSize: '20px', ...style }} />,
        // HeatMapOutlined: <HeatMapOutlined style={{ fontSize: '20px', ...style }} />,
        // FallOutlined: <FallOutlined style={{ fontSize: '20px', ...style }} />,
        // RiseOutlined: <RiseOutlined style={{ fontSize: '20px', ...style }} />,
        // StockOutlined: <StockOutlined style={{ fontSize: '20px', ...style }} />,
        // BoxPlotOutlined: <BoxPlotOutlined style={{ fontSize: '20px', ...style }} />,
        // FundOutlined: <FundOutlined style={{ fontSize: '20px', ...style }} />,
        // SlidersOutlined: <SlidersOutlined style={{ fontSize: '20px', ...style }} />,
        //网站类图标
        AccountBookOutlined: <AccountBookOutlined style={{ fontSize: '20px', ...style }} />,
        AimOutlined: <AimOutlined style={{ fontSize: '20px', ...style }} />,
        AlertOutlined: <AlertOutlined style={{ fontSize: '20px', ...style }} />,
        ApartmentOutlined: <ApartmentOutlined style={{ fontSize: '20px', ...style }} />,
        ApiOutlined: <ApiOutlined style={{ fontSize: '20px', ...style }} />,
        AppstoreAddOutlined: <AppstoreAddOutlined style={{ fontSize: '20px', ...style }} />,
        AppstoreOutlined: <AppstoreOutlined style={{ fontSize: '20px', ...style }} />,
        AudioOutlined: <AudioOutlined style={{ fontSize: '20px', ...style }} />,
        AudioMutedOutlined: <AudioMutedOutlined style={{ fontSize: '20px', ...style }} />,
        AuditOutlined: <AuditOutlined style={{ fontSize: '20px', ...style }} />,
        BankOutlined: <BankOutlined style={{ fontSize: '20px', ...style }} />,
        BarcodeOutlined: <BarcodeOutlined style={{ fontSize: '20px', ...style }} />,
        BarsOutlined: <BarsOutlined style={{ fontSize: '20px', ...style }} />,
        BellOutlined: <BellOutlined style={{ fontSize: '20px', ...style }} />,
        BookOutlined: <BookOutlined style={{ fontSize: '20px', ...style }} />,
        BorderOutlined: <BorderOutlined style={{ fontSize: '20px', ...style }} />,
        BranchesOutlined: <BranchesOutlined style={{ fontSize: '20px', ...style }} />,
        BugOutlined: <BugOutlined style={{ fontSize: '20px', ...style }} />,
        CameraOutlined: <CameraOutlined style={{ fontSize: '20px', ...style }} />,
        CarOutlined: <CarOutlined style={{ fontSize: '20px', ...style }} />,
        CarryOutOutlined: <CarryOutOutlined style={{ fontSize: '20px', ...style }} />,
        CiCircleOutlined: <CiCircleOutlined style={{ fontSize: '20px', ...style }} />,
        CiOutlined: <CiOutlined style={{ fontSize: '20px', ...style }} />,
        ClearOutlined: <ClearOutlined style={{ fontSize: '20px', ...style }} />,
        CloudDownloadOutlined: <CloudDownloadOutlined style={{ fontSize: '20px', ...style }} />,
        CloudOutlined: <CloudOutlined style={{ fontSize: '20px', ...style }} />,
        CloudServerOutlined: <CloudServerOutlined style={{ fontSize: '20px', ...style }} />,
        CloudSyncOutlined: <CloudSyncOutlined style={{ fontSize: '20px', ...style }} />,
        CloudUploadOutlined: <CloudUploadOutlined style={{ fontSize: '20px', ...style }} />,
        ClusterOutlined: <ClusterOutlined style={{ fontSize: '20px', ...style }} />,
        CodeOutlined: <CodeOutlined style={{ fontSize: '20px', ...style }} />,
        CoffeeOutlined: <CoffeeOutlined style={{ fontSize: '20px', ...style }} />,
        CommentOutlined: <CommentOutlined style={{ fontSize: '20px', ...style }} />,
        CompassOutlined: <CompassOutlined style={{ fontSize: '20px', ...style }} />,
        CompressOutlined: <CompressOutlined style={{ fontSize: '20px', ...style }} />,
        ConsoleSqlOutlined: <ConsoleSqlOutlined style={{ fontSize: '20px', ...style }} />,
        ContactsOutlined: <ContactsOutlined style={{ fontSize: '20px', ...style }} />,
        ContainerOutlined: <ContainerOutlined style={{ fontSize: '20px', ...style }} />,
        ControlOutlined: <ControlOutlined style={{ fontSize: '20px', ...style }} />,
        CopyrightOutlined: <CopyrightOutlined style={{ fontSize: '20px', ...style }} />,
        CreditCardOutlined: <CreditCardOutlined style={{ fontSize: '20px', ...style }} />,
        CrownOutlined: <CrownOutlined style={{ fontSize: '20px', ...style }} />,
        CustomerServiceOutlined: <CustomerServiceOutlined style={{ fontSize: '20px', ...style }} />,
        DatabaseOutlined: <DatabaseOutlined style={{ fontSize: '20px', ...style }} />,
        DeleteColumnOutlined: <DeleteColumnOutlined style={{ fontSize: '20px', ...style }} />,
        DashboardOutlined: <DashboardOutlined style={{ fontSize: '20px', ...style }} />,
        DeleteRowOutlined: <DeleteRowOutlined style={{ fontSize: '20px', ...style }} />,
        DeploymentUnitOutlined: <DeploymentUnitOutlined style={{ fontSize: '20px', ...style }} />,
        DesktopOutlined: <DesktopOutlined style={{ fontSize: '20px', ...style }} />,
        DeliveredProcedureOutlined: <DeliveredProcedureOutlined style={{ fontSize: '20px', ...style }} />,
        DisconnectOutlined: <DisconnectOutlined style={{ fontSize: '20px', ...style }} />,
        DislikeOutlined: <DislikeOutlined style={{ fontSize: '20px', ...style }} />,
        DollarOutlined: <DollarOutlined style={{ fontSize: '20px', ...style }} />,
        DownloadOutlined: <DownloadOutlined style={{ fontSize: '20px', ...style }} />,
        EllipsisOutlined: <EllipsisOutlined style={{ fontSize: '20px', ...style }} />,
        EnvironmentOutlined: <EnvironmentOutlined style={{ fontSize: '20px', ...style }} />,
        EuroCircleOutlined: <EuroCircleOutlined style={{ fontSize: '20px', ...style }} />,
        ExceptionOutlined: <ExceptionOutlined style={{ fontSize: '20px', ...style }} />,
        ExpandAltOutlined: <ExpandAltOutlined style={{ fontSize: '20px', ...style }} />,
        ExpandOutlined: <ExpandOutlined style={{ fontSize: '20px', ...style }} />,
        ExperimentOutlined: <ExperimentOutlined style={{ fontSize: '20px', ...style }} />,
        FieldTimeOutlined: <FieldTimeOutlined style={{ fontSize: '20px', ...style }} />,
        FolderOpenOutlined: <FolderOpenOutlined style={{ fontSize: '20px', ...style }} />,
        FundProjectionScreenOutlined: <FundProjectionScreenOutlined style={{ fontSize: '20px', ...style }} />,
        GlobalOutlined: <GlobalOutlined style={{ fontSize: '20px', ...style }} />,
        HddOutlined: <HddOutlined style={{ fontSize: '20px', ...style }} />,
        HistoryOutlined: <HistoryOutlined style={{ fontSize: '20px', ...style }} />,
        InboxOutlined: <InboxOutlined style={{ fontSize: '20px', ...style }} />,
        LaptopOutlined: <LaptopOutlined style={{ fontSize: '20px', ...style }} />,
        LockOutlined: <LockOutlined style={{ fontSize: '20px', ...style }} />,
        MailOutlined: <MailOutlined style={{ fontSize: '20px', ...style }} />,
        MergeOutlined: <MergeOutlined style={{ fontSize: '20px', ...style }} />,
        MessageOutlined: <MessageOutlined style={{ fontSize: '20px', ...style }} />,
        PictureOutlined: <PictureOutlined style={{ fontSize: '20px', ...style }} />,
        PlaySquareOutlined: <PlaySquareOutlined style={{ fontSize: '20px', ...style }} />,
        ReadOutlined: <ReadOutlined style={{ fontSize: '20px', ...style }} />,
        SettingOutlined: <SettingOutlined style={{ fontSize: '20px', ...style }} />,
        ShopOutlined: <ShopOutlined style={{ fontSize: '20px', ...style }} />,
        ShoppingCartOutlined: <ShoppingCartOutlined style={{ fontSize: '20px', ...style }} />,
        ShoppingOutlined: <ShoppingOutlined style={{ fontSize: '20px', ...style }} />,
        TeamOutlined: <TeamOutlined style={{ fontSize: '20px', ...style }} />,


    }

    return {
        getIcon: (name) => antdIcons[name],
        antdIcons: antdIcons,
    }
}

export default AntdIcon;